package com.yiqi.zhiyuan.common.widget;

import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

/**
 * @ProjectName: ZhiYuan
 * @Description: java类作用描述
 * @Author: lijuwen
 * @CreateDate: 2019/4/3 16:03
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/4/3 16:03
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class NoCrashLinearLayoutManager  extends LinearLayoutManager {
    public NoCrashLinearLayoutManager(Context context) {
        super(context);
    }

    @Override
    public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {
        try {
            super.onLayoutChildren(recycler, state);
        } catch (IndexOutOfBoundsException e) {
            e.printStackTrace();
        }
    }
}
